package com.example.mqttdemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.mqttdemo.entity.pojo.SensorData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.mqttdemo.entity.pojo.SensorDataPageQuery;

/**
* @author wangzihang
*/
public interface SensorDataService extends IService<SensorData> {

    IPage<SensorData> pageSensorData(IPage<SensorData> page, SensorDataPageQuery sensorDataPageQuery);

    SensorData getLatestData(String deviceId);
}
